home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 20 / Cream of the Crop 20 (Terry Blount) (1996).iso / program / n_b_v203.zip / CRT_WAIT.DMO < prev    next >
Text File  |  1996-07-04  |  3KB  |  51 lines

  1. $if 0
  2.     ┌──────────────────────────╖                        PowerBASIC v3.20
  3.  ┌──┤          DASoft          ╟──────────────────────┬──────────────────╖
  4.  │  ├──────────────────────────╢    Copyright 1995    │ DATE: 1995-10-01 ╟─╖
  5.  │  │ FILE NAME   CRT_WAIT.DMO ║          by          ╘════════════════─ ║ ║
  6.  │  │                          ║  Don Schullian, Jr.                     ║ ║
  7.  │  ╘══════════════════════════╝                                         ║ ║
  8.  │ A license is hereby granted to the holder to use this source code in  ║ ║
  9.  │ any program, commercial or otherwise,  without receiving the express  ║ ║
  10.  │ permission of the copyright holder and without paying any royalties,  ║ ║
  11.  │ as long as this code is not distributed in any compilable format.     ║ ║
  12.  │  IE: source code files, PowerBASIC Unit files, and printed listings   ║ ║
  13.  ╘═╤═════════════════════════════════════════════════════════════════════╝ ║
  14.    │                ....................................                   ║
  15.    ╘═══════════════════════════════════════════════════════════════════════╝
  16. $endif
  17.  
  18. '.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°.°
  19. ' ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° ° °
  20. $INCLUDE "DAS-NBV1.INC"
  21. SCREEN 12
  22. CLS
  23. GraphicSETUP
  24. COLOR 7, 0
  25.  
  26. ? "┌─────────────────────────────────────────────────────────────────────────
  27. ? "│ GRFwaitRefresh ( ScanLine% )
  28. ? "│
  29. ? "│ PURPOSE: pause until the VGA scanline has passed Scanline% line number
  30. ? "│  PARAMS: ScanLine% the number of the row to be passed ( 0 -> 479 )
  31. ? "│
  32. ? "│    NOTE: VGAwaitRetrace provides a more general purpose version of this
  33. ? "│          this routine but this one is used by the DAS-NBV? libraries
  34. ? "│
  35. ? "│ To be honest, with today's CPU's and the speed they move at this may
  36. ? "│ well be a throw-back to what equates to the stoneages! So, unless you
  37. ? "│ experiance some problems with flickering, don't even worry about it!
  38. ? "└─────────────────────────────────────────────────────────────────────────
  39.  
  40. DELAY 1                                       '┌─────────────────────────────
  41. GRFwaitRefresh 0                              '│ wait until the refresh has
  42. GBoxFill   0, 250, 319, 479, "", 3,  1        '│ passed the top of the box
  43.                                               '│ for flicker-free drawing
  44. DELAY 1                                       '│
  45. GRFwaitRefresh  400                           '│ this should flicker but
  46. GBoxFill 320, 250, 639, 479, "", 3, 15        '│ you'll have to be quick
  47.                                               '│ to see it
  48. WHILE NOT INSTAT : WEND                       '│
  49. CLS                                           '│
  50. SCREEN 0                                      '└────────────────────────────
  51.